package model.enumeration;

import java.util.Arrays;
import java.util.List;

public class ChangeOrderState {
    public static List<States> stateList = Arrays.asList(
            new States(0, "未付款"),
            new States(1, "未发货"),
            new States(2, "已发货"),
            new States(3, "已完成订单")
    );

    public static class States {
        private Integer id;
        private String name;

        public States() {
        }

        public States(Integer id, String name) {
            this.id = id;
            this.name = name;
        }

        public Integer getId() {
            return id;
        }

        public void setId(Integer id) {
            this.id = id;
        }

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }

        @Override
        public String toString() {
            return "States{" +
                    "id=" + id +
                    ", name='" + name + '\'' +
                    '}';
        }
    }

//    public enum States {
//        UNPAID(0, "未付款"),
//        UNSHIPPED(1, "未发货"),
//        DELIVERED(2, "已发货"),
//        RECEIVED(3, "已完成订单");
//        public Integer id;
//        public String name;
//        States(Integer id, String name) {
//            this.id = id;
//            this.name = name;
//        }
//
//        public Integer getId() {
//            return id;
//        }
//
//        public String getName() {
//            return name;
//        }
//    }
}
